<template>
  <div>
    <template v-if="viewType === 'tree'">
      <TreeView ref="refTree" :actionId="actionId" />

      <!-- @change-menu="handleChangeMenu" -->
    </template>
  </div>
</template>

<script>
import viewMixin from '@/odooui/viewMixin'

import TreeView from './sale_tree.vue'

export default {
  name: 'Web',
  components: {
    TreeView
  },
  mixins: [viewMixin],

  data() {
    return {
      actionId: 'fp_sale.action_fp_sale_order'
    }
  },

  computed: {},

  watch: {},

  async created() {},

  mounted() {
    const { activeIds } = this.$route.query
    this.$refs.refTree.search_data(activeIds)
  },

  methods: {
    // handleChangeMenu(...args) {
    //   this.$emit('change-menu', ...args)
    // }
  }
}
</script>

<style type="text/css"></style>
